<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加</title>
    <link rel="stylesheet" type="text/css" href="../../static/layui/css/layui.css">
    <link rel="stylesheet" type="text/css" href="../../static/editor.md/css/editormd.min.css" />
    <link rel="stylesheet" type="text/css" href="../../static/css/common.css">
    <link rel="stylesheet" type="text/css" href="../../static/css/blog/edit.css">

    <script src="../../static/js/jquery-3.3.1.min.js"></script>
    <script src="../../static/layui/layui.js"></script>
    <script src="../../static/editor.md/editormd.min.js"></script>
    <script src="../../api/blog/edit.js"></script>
</head>
<body>
    <form class="layui-form" style="margin: 0 auto;padding-top: 40px;">
        <input type="hidden" id="id" />
        <div class="layui-form-item">
            <label class="layui-form-label layui-required">标题:</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input layui-form-danger" id="title" required="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label layui-required">描述:</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" id="description" required="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label layui-required">音乐id:</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" id="musicId" required="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label layui-required">状态:</label>
            <div class="layui-input-block">
                <select id="state">
                    <option value="PENDING">待发布</option>
                    <option value="ONLINE">已发布</option>
                    <option value="OFFLINE">已下架</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <div id="my-editormd" class="z-index-99">
                <textarea class="editormd-markdown-textarea" name="content" style="display:none;"></textarea>
                <!-- 第二个隐藏文本域，用来构造生成的HTML代码，方便表单POST提交，这里的name可以任意取，后台接受时以这个name键为准 -->
                <textarea class="editormd-html-textarea" name="content" id="content"></textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <input class="layui-btn" lay-submit="" lay-filter="update" type="button" value="确定" />
            </div>
        </div>
    </form>
</body>
</html>